package com.biostime.qdingding.modules.qd.dao;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.biostime.qdingding.common.mybatis.MyBatisDao;
import com.biostime.qdingding.common.persistence.CrudDao;
import com.biostime.qdingding.modules.qd.api.dto.CourseAlbumDto;
import com.biostime.qdingding.modules.qd.entity.Album;

/**
 * 相册Dao
 * @author king
 * @version 2015-11-20
 */
@MyBatisDao
public interface AlbumDao extends CrudDao<Album> {
	
	public void deleteAll(Album ca);
	
	
//	 <!-- ————————————————————————————楚河汉界，谁敢动我的，打死! ————————————————————————————————————-->
	public int apiInsert(Album album);
	
	public List<Album> apiGet(@Param("category")String category,@Param("objectId")String objectId);
	
	public int apiDelByObject(Album album);
	
	public int apiUpdateHeadImg(Album album);
	
	public List<CourseAlbumDto> apiCourseAlbum(@Param("centerId") String centerId,@Param("studentId")String studentId);
	
	public List<HashMap<String,Object>> apiGetScollImages(@Param("centerId") String centerId,@Param("categoryId") String categoryId);
}